<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>DouPHP 管理中心</title>
    <meta name="Copyright" content="Douco Design." />
    <link rel="stylesheet" href="/Public/Static/Admin/css/zyUpload.css" type="text/css">
    <link href="/Public/Static/Admin/css/public.css" rel="stylesheet" type="text/css">

    <link rel="stylesheet" href="/Public/Static/Admin/themes/default/default.css" />
    <link rel="stylesheet" href="/Public/Static/Admin/plugins/code/prettify.css" />
    <script charset="utf-8" src="/Public/Static/Admin/kindeditor.js"></script>
    <script charset="utf-8" src="/Public/Static/Admin/lang/zh_CN.js"></script>
    <script charset="utf-8" src="/Public/Static/Admin/plugins/code/prettify.js"></script>

    <script type="text/javascript" src="/Public/Static/Admin/js/jquery.min.js"></script>
    <script type="text/javascript" src="/Public/Static/Admin/js/global.js"></script>
    <script src="/Public/Static/Admin/js/add_article.js"></script>

    <!--add_article.html-->
    <link rel="stylesheet" type="text/css" href="/Public/Static/Admin/datedropper.css">
    <link rel="stylesheet" type="text/css" href="/Public/Static/Admin/css/timedropper.min.css">
    <link rel="stylesheet" href="/Public/Static/Admin/css/zyUpload.css" type="text/css">

    <link rel="stylesheet" href="/editor/themes/default/default.css" />
    <link rel="stylesheet" href="/editor/plugins/code/prettify.css" />
    <script charset="utf-8" src="/editor/kindeditor.js"></script>
    <script charset="utf-8" src="/editor/lang/zh_CN.js"></script>
    <script charset="utf-8" src="/editor/plugins/code/prettify.js"></script>

    <script src="/Public/Static/Admin/js/zyFile.js"></script>
    <script src="/Public/Static/Admin/js/zyUpload.js"></script>
    <script src="/Public/Static/Admin/js/script.js"></script>
    <script src="/Public/Static/Admin/js/datedropper.min.js"></script>
    <script src="/Public/Static/Admin/js/timedropper.min.js"></script>
    <script type="text/javascript" src="/Public/Static/Admin/js/jquery.autotextarea.js"></script>


    <!--<script charset="utf-8" src="/Public/Static/Admin/js/kindeditor.js"></script>-->
    <!--<script charset="utf-8" src="/Public/Static/Admin/js/zh_CN.js"></script>-->
    <!--<script charset="utf-8" src="/Public/Static/Admin/js/prettify.js"></script>-->

</head>
<body>
<div id="dcWrap"> <div id="dcHead">
    <div id="head">
        <div class="logo"><a href="index.html"><img src="/Public/Static/Admin/images/dclogo.gif" alt="logo"></a></div>
        <div class="nav">
            <ul class="navRight">
                <li class="M noLeft"><a href="JavaScript:void(0);">您好，admin</a>
                    <div class="drop mUser">
                        <a href="manager.php?rec=edit&id=1">编辑我的个人资料</a>
                        <a href="manager.php?rec=cloud_account">设置云账户</a>
                    </div>
                </li>
                <li class="noRight"><a href="<?php echo U('/Index/login');?>">退出</a></li>
            </ul>
        </div>
    </div>
</div>
    <!-- dcHead 结束 --> <div id="dcLeft"><div id="menu">
        <ul class="top">
            <li><a href="<?php echo U('/Index/index');?>"><i class="home"></i><em>管理首页</em></a></li>
        </ul>
        <ul>
            <li><a href="<?php echo U('/ActInfo/index');?>"><i class="show"></i><em>文章管理</em></a></li>
            <li><a href="<?php echo U('/News/index');?>"><i class="page"></i><em>咨询管理</em></a></li>
        </ul>
        <ul>
            <li><a href="<?php echo U('/Order/index');?>"><i class="productCat"></i><em>订单管理</em></a></li>
        </ul>
        <ul>
            <li><a href="<?php echo U('/UserInfo/index');?>"><i class="articleCat"></i><em>会员管理</em></a></li>
        </ul>
        <ul class="bot">
            <li><a href="<?php echo U('/Backup/index');?>"><i class="backup"></i><em>数据备份</em></a></li>
            <li><a href="<?php echo U('/AdminInfo/index');?>"><i class="manager"></i><em>网站管理员</em></a></li>
            <li><a href="<?php echo U('/AdminPower/index');?>"><i class="manager"></i><em>超级管理员</em></a></li>
            <li><a href="manager.php?rec=manager_log"><i class="managerLog"></i><em>操作记录</em></a></li>
        </ul>
    </div>
    </div>
    <div id="dcMain"> <!-- 当前位置 -->

<div id="urHere">DouPHP 管理中心<b>></b><strong>文章管理</strong> </div>
<div class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
        <h3><a href="<?php echo U('/ActInfo/addArt');?>" class="actionBtn add">添加文章</a>文章列表</h3>
    <div class="filter">
    <form action="<?php echo U('index');?>" method="get">
     <input name="keyword" type="text" class="inpMain" value="<?php echo I('get.keyword');?>" placeholder="活动名、主办方" size="30" />
        <select name="search">
            <option value="" <?php if(I('get.search') != 1 and I('get.search') != 2): ?>selected="selected"<?php endif; ?>>--活动类别--</option>
            <option value="1" <?php if(I('get.search') == 1 ): ?>selected="selected"<?php endif; ?>>--收费--</option>
            <option value="2" <?php if(I('get.search') == 2 ): ?>selected="selected"<?php endif; ?>>--免费--</option>
        </select>
     <input name="submit" class="btnGray" type="submit" value="筛选" />
        <!--<button type="submit" class="btnGray" type="submit">搜 索</button>-->
    </form>
    </div>
        <div id="list">
    <form name="action" method="post" action="article.php?rec=action">
    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
     <tr>
         <th width="22" align="center"><input name='chkall' type='checkbox' id='chkall' onclick='selectcheckbox(this.form)' value='check'></th>
         <th width="40" align="center">编号</th>
         <th align="center">活动名称</th>
         <th align="center">活动费用(元)</th>
         <th align="center">活动开始时间</th>
         <th align="center">活动结束时间</th>
         <th align="center">报名开始时间</th>
         <th align="center">截止报名时间</th>
         <th align="center">活动类别</th>
         <th align="center">主办方</th>
         <th align="center">参加人数限制</th>
         <th align="center">活动地址</th>
         <th align="center">操作</th>
     </tr>
        <?php if(is_array($data)): foreach($data as $key=>$val): ?><tr>
                <td width="22" align="center">
                    <input name='chkall' type='checkbox' onclick='selectcheckbox(this.form)' value='check'>
                </td>
                <td width="40" align="center">
                    <?php echo ($val['act_id']); ?>
                </td>
                <td align="center">
                    <?php echo ($val['act_tittle']); ?>
                </td>
                <!--<td align="center">-->
                    <!--<?php echo ($val['act_decribe']); ?>-->
                <!--</td>-->
                <!--<td align="center">-->
                    <!--<?php echo ($val['act_img']); ?>-->
                <!--</td>-->
                <td align="center">
                    <?php echo ($val['act_price']); ?>
                </td>
                <td align="center">
                    <?php echo ($val['act_start_time']); ?>
                </td>
                <td align="center">
                    <?php echo ($val['act_stop_time']); ?>
                </td>
                <td align="center">
                    <?php echo ($val['start_time']); ?>
                </td>
                <td align="center">
                    <?php echo ($val['end_time']); ?>
                </td>
                <td align="center">
                    <?php if($val['act_type_code'] == 1): ?>收费
                        <?php elseif($val['act_type_code'] == 2): ?> 免费
                        <?php else: ?> 滚蛋<?php endif; ?>
                </td>
                <td align="center">
                    <?php echo ($val['act_organizer']); ?>
                </td>
                <td align="center">
                    <?php echo ($val['act_joiner_num']); ?>
                </td>
                <td align="center">
                    <?php echo ($val['act_address']); ?>
                </td>
                <td align="center">
                    <a href="<?php echo U('modArt', array('act_id'=>$val['act_id']));?>">编辑</a>
                    <a href="javascript:void(0);" data-id="<?php echo ($val['act_id']); ?>" class="delAct">删除</a>
                </td>
            </tr><?php endforeach; endif; ?>

    </table>

    </form>
    </div>
    <div class="clear"></div>
    <div class="pager">
        <?php echo ($show); ?>
    </div>
 </div>


 <script type="text/javascript">

     $(function(){
         $('a.delAct').click(function(){
             if (confirm('确定要删除？')) {
                 var id = $(this).attr('data-id');
                 window.location.href = "/ActInfo/delArt/act_id/"+id;
             }
         })
     });

 onload = function()
 {
   document.forms['action'].reset();
 }

 function douAction()
 {
     var frm = document.forms['action'];

     frm.elements['new_cat_id'].style.display = frm.elements['action'].value == 'category_move' ? '' : 'none';
 }

 </script>



</div>
<div class="clear"></div>
<div id="dcFooter">
    <div id="footer">
        <div class="line"></div>
        <ul>
            版权所有 © 2017-2019 php1704
        </ul>
    </div>
</div><!-- dcFooter 结束 -->
<div class="clear"></div> </div>

</body>
</html>